package com.xiaobai.data.manager.system.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaobai.data.manager.system.RoleManager;
import com.xiaobai.data.mapper.system.RoleMapper;
import com.xiaobai.model.entity.system.Role;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.List;
@AllArgsConstructor
@Repository
public class RoleManagerImpl extends ServiceImpl<RoleMapper, Role>
    implements RoleManager {

    private final RoleMapper roleMapper;
    @Override
    public List<Role> listTreeRole(Long parentId) {
        return roleMapper.listTreeRole(parentId);
    }
}
